package com.gavin.model;

import java.io.Serializable;
import java.util.List;
/**
 * ------------------------------
 * 分页信息 - 带泛型
 * ------------------------------
 * @author wdm  @date 2017年12月28日
 * @version 1.0
 */
public class Page<M> implements Serializable{// extends Model

	private static final long serialVersionUID = -5474960137714028827L;
	
	/**
	 * 当前页码
	 */
	private long pageNumber=0;
	/**
	 * 一页多少条
	 */
	private long pageSize=10;
	/**
	 * 总数据量
	 */
	private long totalCount;
	
	private long totalPage;
	
	private List<M> list;
	
	public long getPageNumber() {
		return pageNumber;
	}
	public void setPageNumber(long pageNumber) {
		this.pageNumber = pageNumber;
	}
	public long getPageSize() {
		return pageSize;
	}
	public void setPageSize(long pageSize) {
		this.pageSize = pageSize;
	}
	public long getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(long totalCount) {
		this.totalCount = totalCount;
	}
	public List<M> getList() {
		return list;
	}
	public void setList(List<M> list) {
		this.list = list;
	}
	public long getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(long totalPage) {
		this.totalPage = totalPage;
	}
}
